package com.wzxy.medical_backed.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzxy.medical_backed.entity.Reimbursement;
import org.springframework.transaction.annotation.Transactional;

public interface ReimbursementService extends IService<Reimbursement> {

    @Transactional
    boolean updateReimbursementStatus(Long id, String status);

    @Transactional
    boolean updateRemitStatus(Long id, String status);

    /**
     * 计算报销金额
     * @param totalCost 总费用
     * @param medicalName 慢性病名称
     * @param date 报销日期
     * @return 报销金额
     */
    Double calculateReimbursementAmount(Double totalCost, String medicalName, java.util.Date date);
}